<template>
    <div class="detail_tab">
        <div v-for="(item,index) in detailstate.matchdetail.tabs" :key="index" class="tab_item" :class="detailstate.matchdetail.activetab == item.value ? 'tab_item_active' : ''" @click="detailstore.changeactivetab(item.value)">
            <div class="text">{{item.label}}</div>
        </div>
    </div>
</template>

<script setup>
const { detailstore, detailstate } = inject('detailSell')
</script>

<style lang="scss" scoped>
.detail_tab {
    display: flex;
    align-items: center;
    margin: 12px 0;
}

.tab_item {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #fff;
    margin-right: 24px;
    font-size: 14px;
    padding-bottom: 4px;
    color: #8a8a8a;
    cursor: pointer;


    .text {
        font-family: AlibabaPuHuiTi_2_85_;
        display: flex;
        align-items: center;
    }
}

.tab_item_active {
    font-size: 16px;
    font-weight: bold;
    color: #ff7900;
    border-bottom: 2px solid #ff7900;
}
</style>